package com.xp.basic.heima.nio.netty.simpledemo.handler;

import com.xp.basic.heima.nio.netty.simpledemo.chat.message.Message;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageCodec;

import java.util.List;

/***
 * 自定义协议
 */
public class MyObjectCodec extends MessageToMessageCodec<ByteBuf, Message> {


    @Override
    protected void encode(ChannelHandlerContext ctx, Message message, List<Object> list) throws Exception {

    }

    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List<Object> list) throws Exception {

    }
}
